



var db = require('../db');
var router = require('express').Router();
var webResult = require('../web-result');
var path = require("path");
var fs = require("fs");
var JSON5 = require("json5");

const configurationPath = path.join(__dirname, "../config/other.json5");
const configuration = JSON5.parse(fs.readFileSync(configurationPath, "utf-8"));



router.get("/other/yuzu/server/list", async (_request, response) => {
    response.send(webResult.success(configuration.server_list.yuzu));
});

router.get("/other/minecraft/server/list", async (_request, response) => {
    response.send(webResult.success(configuration.server_list.minecraft));
});


module.exports = router;


